package com.kyubi.tagger.decorators;

import java.util.Vector;

import com.kyubi.tagger.ITagger;

/**
 * This class represents the Lowercase decorator.
 * @author anand
 *
 */
public class Lowercase implements ITagger {
	
	private ITagger tagger;
	
	/**
	 * Constructor
	 * @param tagger	the tagger being decorated
	 */
	public Lowercase(ITagger tagger) {
		this.tagger = tagger;
	}

	/**
	 * @see com.kyubi.tagger.ITagger
	 */
	public Vector<String> getOriginalValues() {
		Vector<String> dataVect = tagger.getOriginalValues();
		return dataVect;
	}

	/**
	 * @see com.kyubi.tagger.ITagger
	 */
	public Vector<String> getTaggedValues() {
		Vector<String> tValues = tagger.getTaggedValues();
		Vector<String> rValues = new Vector<String>();
		
		for(String value : tValues) {
			rValues.add(value.toLowerCase());
		}
		
		return rValues;
	}
	
	
}
